<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        /*  var b = 0;
                                                                                                                                                                                                                      for (var i = 100; i <= 200; i++) { */
        // console.log(i);
        /*  if (i % 2 == 0) {
                                                                          console.log(i);
                                                                          b += i;
                                                                      } else if (i % 2 == 1) {
                                                                          console.log(i);
                                                                          // b+=i
                                                                      } */
        /*    if (i % 2 == 1) {
                                                                  console.log(i);
                                                                  b += i;
                                                              }
                                                          }
                                                          console.log(b + "是奇数和"); */
        /*   var a = 1;
                                                var b = a;
                                                var c = 0;
                                                for (var i = 1; i < 5; i++) {
                                                    console.log(a);
                                                    c += parseInt(a);
                                                    a = a + "" + b;
                                                }
                                                console.log(c); */
        /*  var a = 2;
              var b = a;
              for (var i = 1; i < 4; i++) {
                  console.log(a);
                  a = a + "" + b;
              } */
        /* for (var i = 1; i <= 1000; i++) {
                                  console.log(i); */
        /*  找到 1-1000之间  三位 数字相同的值；  111  222 333 444... */
        for (var i = 1; i <= 1000; i++) {
            if (i % 111 == 0) {
                console.log(i);
            }
        }
    </script>
</body>

</html>